import request from '@/utils/request'



// 更新 Geesis Partner 信息
export const GeesisPartner = (data) => {
  return request({
    url: '/vesting/beneficiarie',
    method: 'patch',
    data
  })
}


// 查询挖礦用戶
export const MinersgetMinersAndCount = () => {
  return request({
    url: '/Miners/getMinersAndCount',
    method: 'get'
  })
}

// 获取配置
export const configconfig = () => {
  return request({
    url: '/config/config',
    method: 'get'
  })
}
// 修改配置
export const configsetConfig = (data) => {
  return request({
    url: '/config/setConfig',
    method: 'post',
    data
  })
}

// 后台登录
export const authlogin = (data) => {
  return request({
    url: '/auth/login-admin',
    method: 'post',
    data
  })
}


// 空投列表
export const airdroplist = () => {
  return request({
    url: '/airdrop/list',
    method: 'get'
  })
}
/* "address": "asdwad", */
// 新增空投
export const airdropaddUserRewards = (data) => {
  return request({
    url: '/airdrop/addUserRewards',
    method: 'post',
    data
  })
}



// 新增邀请码
/* "address": "sbsbsbsbbs123bsbsbsbsbs",
  "amount": 5, */
export const inviteCodepurchase = (data) => {
  return request({
    // url: '/inviteCode/purchase',
    url: '/inviteCode/buyByAdmin',
    method: 'post',
    data
  })
}



// 邀请码列表
export const inviteCodelist = () => {
  return request({
    url: '/inviteCode/list',
    method: 'get'
  })
}



// 添加 vesting 成员
export const vestingaddBeneficiarie = (data) => {
  return request({
    url: '/vesting/addBeneficiarie',
    method: 'post',
    data
  })
}

// 获取 10824 地址
export const vestingbeneficiaries = () => {
  return request({
    url: '/vesting/beneficiaries',
    method: 'get',
  })
}






